package rest.jbpm.wrappers;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlRootElement
@XmlAccessorType(XmlAccessType.PROPERTY)
@XmlType(name = "variableWrapper", propOrder = {"name","value"})
public class Variable {
	
	private String name;
	private String value;
	
	protected Variable() {
		// TODO Auto-generated constructor stub
	}
	
	public Variable(String name, String value) {
		this.name = name;
		this.value = value;
	}
	
	@XmlElement(required=true)
	public String getName() {
		return name;
	}
	
	@XmlElement(required=false)
	public String getValue() {
		return value;
	}

}
